﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyBBS.Data.Models
{
    public class PostTag
    {
        public long ID { get; set; }
        public long PostID { get; set; }
        public long TagID { get; set; }

        public override bool Equals(object obj)
        {
            if (obj is PostTag)
            {
                PostTag compareTo = (PostTag)obj;
                return compareTo.ID == ID;
            }
            else
                return base.Equals(obj);
        }

        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }
    }
}
